<?php
class FormulaDesarrollada extends AppModel {
    var $name = 'FormulaDesarrollada';
    var $useTable = "formulas_desarrolladas";

    var $belongsTo = array(
        'Paciente' => array(
            'classname' => 'Paciente',
            'foreignKey' => 'paciente_id'
        )
    );

    var $hasMany = array(
        'FormulaAlimento' => array(
            'classname' => 'FormulaAlimento',
            'foreignKey' => 'formula_desarrollada_id'
        )
    );
}

?>
